const search = window.location.search

export function userDetailFilter (userCode) {
  return `index.html${search}#/otherdetail?userCode=${userCode}`
}

export function jybFilter () {
  return 'index.html#/task'
}

export function gameDetailFilter (gameId) {
  return `index.html${search}#/game/gamedetail?gameId=${gameId}`
}

export function articleDetailFilter (url) {
  return `index.html${search}#/selectionlhfp?templetContentUrl=${encodeURIComponent(url)}`
}

export function jxngDetailFilter (url) {
  return `index.html${search}#/selectionjxng?templetContentUrl=${encodeURIComponent(url)}`
}